#ifndef NET_CONTEXT_H_INC
#define NET_CONTEXT_H_INC

#include "tilive_base.h"
#include <winsock2.h>
#pragma comment(lib, "ws2_32.lib")

#define BEAT_PORT	8888

class NetContext {
public:
	static WSADATA M_wsaData;
	static char M_host_name[64];
	static sockaddr_in M_host_sockaddr;
public:
	static BOOL	Startup(void);
	static BYTE GetLocalAddr(void);
	static void	Cleanup(void);
};

#endif
